package com.huawei.crm.sample.application.product.converter;

import com.huawei.crm.sample.application.product.dto.ProductDTO;
import com.huawei.crm.sample.domain.product.model.aggragate.Product;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper(componentModel = "spring")
public interface ProductDTOConverter {
    ProductDTOConverter INSTANCE = Mappers.getMapper(ProductDTOConverter.class);

    ProductDTO toDTO(Product product);
    Product toDomain(ProductDTO dto);
} 